#ifndef  _CRC32_H
#define  _CRC32_H

#define MCU_UPGRADE_MAGIC_NUM 0x4D435546

typedef struct mcu_upgrade_head {
	unsigned int magic;
	unsigned int len;
	unsigned int img_crc;
	unsigned int ver;
	unsigned int reserved[59];
	unsigned int header_crc;
} *mcu_head_tp;


extern unsigned int crc32( const unsigned char *buf, unsigned int size);

#endif

